export default {
	data() {
		return {
			phone: '',
			content: ''
		};
	},
	async onLoad() {
		await this.getConfig()
		await this.getAgreement()
	},
	methods: {
		async getConfig() {
			var res = await this.$get('server/index/getconfig')
			if (res.errcode != 0) {
				this.$toast(res.errmsg);
				return;
			}
			this.phone = res.data.shangwuhezuo.text
		},
		async getAgreement() {
			var res = await this.$get('server/login/gethtml', {
				type: 5
			});
			if (res.errcode != 0) {
				this.$toast(res.errmsg);
				return;
			}
			this.content = res.data.list.text;
		},
	}
}
